package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Size;
import java.util.List;
@Data
public class SaasTaskAwardDTO {

    @ApiModelProperty(value = "获得奖励所需要持有的藏品")
    private Long collectionId;

    @ApiModelProperty(value = "权重")
    private Integer weight;

    @ApiModelProperty(value = "藏品和权益道具卡的名称,只在查询获取list集合的时候有用 修改和新增时无效")
    private String firstTitle;

    @ApiModelProperty(value = "奖励列表")
    @Size(min = 1, max = 15, message = "任务奖励最多只能配置15个")
    private List<@Valid SaasTaskAwardDetailsDTO> award;

}
